//
//  DetailImageTableViewCell.m
//  BaseProject
//
//  Created by 王洋 on 2021/2/2.
//  Copyright © 2021 王洋. All rights reserved.
//

#import "DetailImageTableViewCell.h"

@interface DetailImageTableViewCell ()


@end

@implementation DetailImageTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self layout];
    }
    return self;
}


- (void)layout {
    
    [self addSubview:self.mainImageView];
    [self.mainImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.top.mas_equalTo(0);
        make.bottom.mas_equalTo(1);
    }];

}

- (UIImageView *)mainImageView {
    if (!_mainImageView) {
        _mainImageView = [[UIImageView alloc] init];
        _mainImageView.contentMode = UIViewContentModeScaleToFill;
    }
    return _mainImageView;
}

@end
